package com.yonyou.pmclouds.safetyrectification.acceptrecord.service;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.safetyrectification.acceptrecord.entity.AcceptRecordVO;

import java.util.Map;

/**
 * 安全整改-验收记录查询接口
 *
 * @author tanghuan
 * @date 2019/10/26
 */
public interface IAcceptRecordQuery {
    /**
     * 通过主键查询
     *
     * @param id
     * @return
     * @throws BusinessException
     */
    AcceptRecordVO getById(String id) throws BusinessException;

    /**
     * 通过单据查询验收记录
     *
     * @param pkBill
     * @return
     * @throws BusinessException
     */
    Map<String, AcceptRecordVO> getByPkBill(String pkBill) throws BusinessException;

}
